package com.elow.testffmpeg.Demo1;

import androidx.appcompat.app.AppCompatActivity;

import android.opengl.GLSurfaceView;
import android.os.Bundle;

import com.elow.testffmpeg.BufferUtil;
import com.elow.testffmpeg.R;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;

import javax.microedition.khronos.opengles.GL10;

public class Demo1Activity extends AppCompatActivity implements IOpenGLDemo {

    private GLSurfaceView glSurfaceView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        glSurfaceView = new GLSurfaceView(this);
        glSurfaceView.setRenderer(new OpenGLRenderer(this));

        setContentView(glSurfaceView);
    }

    @Override
    public void DrawScene(GL10 gl) {

        gl.glClearColor(1.0f,1.0f,0.0f,0.0f);
        gl.glClear(GL10.GL_COLOR_BUFFER_BIT|GL10.GL_DEPTH_BUFFER_BIT);






    }


}
